Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert inline callbacks to async/await #368

Merged
merged 12 commits into from
Jun 24, 2021
Merged

Conversation

H-Shay
Copy link
Contributor

@H-Shay H-Shay commented Jun 22, 2021

This PR converts some files in sydent to use async/await. I removed the references to the return type Generator in the affected functions but didn't add the new return types, I figured that should go in a seprate PR to ease review.

tests/test_invites.py Outdated Show resolved Hide resolved
@H-Shay H-Shay requested a review from clokep June 22, 2021 20:13
Copy link
Member

@clokep clokep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, but the request method needs to be rethought.

sydent/http/matrixfederationagent.py Outdated Show resolved Hide resolved
@H-Shay
Copy link
Contributor Author

H-Shay commented Jun 24, 2021

Hmm I'm not entirely sure why the github actions run-matrix-is-tests (3.x) is failing-the buildkite tests passed and the tests are passing locally using both python 3.8 and 3.6. Looking at the details it seems to be some sort of connection error, I'm not sure the problem is in the code I'm pushing...

@H-Shay H-Shay requested a review from clokep June 24, 2021 16:19
@clokep
Copy link
Member

clokep commented Jun 24, 2021

Maybe sydent failed to start for some reason? I re-ran the jobs we'll see what happens.

@H-Shay
Copy link
Contributor Author

H-Shay commented Jun 24, 2021

Looks like that worked! Thanks!

@clokep clokep merged commit f5a5bbf into matrix-org:main Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants